<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      .container {
        width: 500px;
        margin: 0 auto;
        margin-top: 50px;
        border-collapse: collapse;
      }
      tr:hover{
        background-color: #f5f7fa;
      }
      th{
        cursor: pointer;
        color: #909399;
      }
      td {
        color: #606266;
      }
      th,td{
        border: 1px solid #ccc;
        text-align: center;
        height: 40px;
      }
      input {
        width: 18px;
        height: 18px;
        cursor: pointer;
      }
    </style>
  </head>
  <body>
    <table class="container">
      <thead>
        <tr>
          <th>
            <input type="checkbox" id="checkAll" />
          </th>
          <th>编号</th>
          <th>姓名</th>
          <th>年龄</th>
          <th>职位</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>
            <input type="checkbox" />
          </td>
          <td>3</td>
          <td>艾伦</td>
          <td>21</td>
          <td>交互设计师</td>
        </tr>
        <tr>
          <td>
            <input type="checkbox" />
          </td>
          <td>22</td>
          <td>玛丽</td>
          <td>30</td>
          <td>测试员</td>
        </tr>
        <tr>
          <td>
            <input type="checkbox" />
          </td>
          <td>3</td>
          <td>王同学</td>
          <td>24</td>
          <td>c++程序员</td>
        </tr>
        <tr>
          <td>
            <input type="checkbox" />
          </td>
          <td>17</td>
          <td>小张</td>
          <td>28</td>
          <td>设计师</td>
        </tr>
        <tr>
          <td>
            <input type="checkbox" />
          </td>
          <td>5</td>
          <td>郭同学</td>
          <td>24</td>
          <td>WEB</td>
        </tr>
      </tbody>
    </table>

    <script src="./index.js"></script>
  </body>
</html>
